package com.abc.demo;

import com.abc.core.annotations.DnaDef;
import com.abc.core.annotations.VarDef;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author lb
 * @date 3/3/22
 */
@Data
@DnaDef(value = "party_dna", dnaName = "party_dna")
public class PartyBO {
    @VarDef("id")
    private Long id;
    @VarDef("partyCode")
    private String partyCode;
    @VarDef("partyName")
    private String partyName;
    @VarDef("birthday")
    private Date birthday;
    @VarDef("gender")
    private String gender;
    @VarDef("certType")
    private String certType;
    @VarDef("certId")
    private String certId;
    @VarDef("address")
    private String address;
    @VarDef("contract")
    private String contract;
    @VarDef("mobile")
    private String mobile;

    private LocalDateTime createTime;

    private List<PartyAccountBO> accounts = new ArrayList<PartyAccountBO>();
}
